{% extends "base.html" %}

<!--  -->
{% block styles %}
<link href="/static/course_list.css" rel="stylesheet"/>
{% endblock %}

<!--  -->
{% block page_content %}
<div class="paper">
    <h3>选课管理</h3>
    <!--    <div>待实现...</div>-->
    <form class="grade-form" action="/action/cousel/add" method="post">
        <label>班次：</label>
        <select name="cla_sn">
            <option value="">--选择--</option>
            {% for item in classs %}
            <option value="{{item.cla_sn}}">
                {{ item.cla_name }}({{ item.cla_sn }})
            </option>
            {% endfor %}
        </select>

        <label>学生：</label>
        <select name="stu_sn">
            <option value="">--选择--</option>
            {% for stu in students %}
            <option value="{{stu.stu_sn}}">
                {{ stu.stu_name }}({{ stu.stu_sn }})
            </option>
            {% endfor %}
        </select>


        <!--        <label>成绩：</label>-->
        <!--        <input type="text" name="grade"/>-->

        <input type="submit" value="选课"/>
    </form>

    <form class="grade-form" action="/action/couselgrade/add" method="post">
        <label>班次：</label>
        <select name="cla_sn">
            <option value="">--选择--</option>
            {% for item in classs %}
            <option value="{{item.cla_sn}}">
                {{ item.cla_name }}({{ item.cla_sn }})
            </option>
            {% endfor %}
        </select>

        <label>学生：</label>
        <select name="stu_sn">
            <option value="">--选择--</option>
            {% for stu in students %}
            <option value="{{stu.stu_sn}}">
                {{ stu.stu_name }}({{ stu.stu_sn }})
            </option>
            {% endfor %}
        </select>


        <label>成绩：</label>
        <input type="text" name="grade"/>

        <input type="submit" value="录入成绩"/>
    </form>
</div>
{% endblock %}
